﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Capstone_project.DatabaseAccessLayer;

namespace Capstone_project
{
    public partial class frmNextstepTask : Form
    {
        public frmNextstepTask()
        {
            InitializeComponent();
        }

        private void btnAddTask_Click(object sender, EventArgs e)
        {
            frmAddTask addtask = new frmAddTask();
            this.Close();
            addtask.ShowDialog();
            addtask.Focus();
        }

        private void frmNextstepTask_Load(object sender, EventArgs e)
        {
            string thongbao = "Module  is created successful.";
            label1.Text = thongbao;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            frmProject a = new frmProject();
            a.frmProject_Load(null, null);
            frmMain b = new frmMain();
            a.TopLevel = false;
            b.panelContent.Controls.Add(a);
            
        }
    }
}
